import http from '../../utils/http'
// 获取学前评价
export const getEvaluationList = (data?:{
  pageNum?:number,
  pageSize?:number,
  userId?:number
})=>{
  return http({
    method:"GET",
    url:"/teacher/comment/preCommentPage",
    data
  })
}
// 获取学前历史评价记录
export const historyFrontEvaluate = (data?:{
  pageNum?:number,
  pageSize?:number,
  userId?:number,
  courseId?:number
})=>{
  return http({
    method:"GET",
    url:"/teacher/comment/hisPreCommentPage",
    data
  })
}
// 根据系列课id获取学前待评价学生列表
export const getPreCommentList = (data:{
  seriesId:number,
  userId:number
})=>{
  return http({
    method:"GET",
    url:"/teacher/comment/preCommentList",
    data
  })
}
// 添加学前评价
export const addPreComment = (data:{
  content:string,
  courseId:number,
  courseSeriesId:number,
  score:number,
  stuId:number,
  stuStatus:string
})=>{
  return http({
    method:"POST",
    url:"/teacher/comment/savePreComment",
    data
  })
}